import { hotPotato } from '../utils/others/hot-potato.js'

const name = ['John', 'Jack', 'Camila', 'Ingrid', 'Car1']
const result = hotPotato(name, 7)
result.eliminated.forEach(name => {
  console.log(`${name}在击鼓传花游戏中被淘汰`)
})
console.log(`胜利者是${result.winner}`)

// Camila was eliminated from the Hot Potato game.
// Jack was eliminated from the Hot Potato game.
// Carl was eliminated from the Hot Potato game.
// Ingrid was eliminated from the Hot Potato game.
// The winner is: John
